package calc.buttonPanel;

import javax.swing.JPanel;

public class ControlPanel extends JPanel {
	private CalcButton clearButton;
	private CalcButton backButton;
	private CalcButton resetButton;

	public ControlPanel() {

		resetButton = new CalcButton("CE");
		clearButton = new CalcButton("C");
		backButton = new CalcButton("←");

		setLayout(null);

		resetButton.setLocation(0, 0);
		clearButton.setLocation(55, 0);
		backButton.setLocation(110, 0);

		add(resetButton);
		add(clearButton);
		add(backButton);

	}

	public CalcButton getClearButton() {
		return clearButton;
	}

	public CalcButton getBackButton() {
		return backButton;
	}

	public CalcButton getResetButton() {
		return resetButton;
	}

	public void setClearButton(CalcButton clearButton) {
		this.clearButton = clearButton;
	}

	public void setBackButton(CalcButton backButton) {
		this.backButton = backButton;
	}

	public void setResetButton(CalcButton resetButton) {
		this.resetButton = resetButton;
	}

}
